namespace SisGAC.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class CadastroPorArtigo : DbMigration
    {
        public override void Up()
        {            
            AddColumn("dbo.Artigo", "CadastradoPor_UserId", c => c.Int());
            AddForeignKey("dbo.Artigo", "CadastradoPor_UserId", "dbo.UserProfile", "UserId");
            CreateIndex("dbo.Artigo", "CadastradoPor_UserId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.Artigo", new[] { "CadastradoPor_UserId" });
            DropForeignKey("dbo.Artigo", "CadastradoPor_UserId", "dbo.UserProfile");
            DropColumn("dbo.Artigo", "CadastradoPor_UserId");
        }
    }
}
